package org.dtrd.modules.record.entity.bean;

/**
 * 血糖统计指标Bean
 * 
 * @author lizhongcheng
 * @version
 * @since 2015-12-10
 */
public class SugarStatisticsBean extends StatisticsBean implements java.io.Serializable {
	private static final long serialVersionUID = 5664387008335778702L;
	/**
	 * 定义本类的私有变量
	 */
	private Integer type;

	private Integer lowestValueStatus;

	private Integer avgValueStatus;

	private Integer highestValueStatus;

	/**
	 * 本类的实例化方法
	 */
	public SugarStatisticsBean() {
	}

	/**
	 * 本类的带参数的实例化方法
	 */
	public SugarStatisticsBean(Integer id, Integer count, Integer patientId, Integer lowCounts, Integer normalCounts, Integer highCounts,
                               Float lowestValue, Float avgValue, Float highestValue, Float highPercent, Float lowPercent, Float normalPercent, Integer type) {
		super(id, count, patientId, lowCounts, normalCounts, highCounts, lowestValue, avgValue, highestValue, highPercent, lowPercent, normalPercent);
		this.type = type;
	}

	public SugarStatisticsBean(Integer type, Integer lowestValueStatus, Integer avgValueStatus, Integer highestValueStatus) {
		super();
		this.type = type;
		this.lowestValueStatus = lowestValueStatus;
		this.avgValueStatus = avgValueStatus;
		this.highestValueStatus = highestValueStatus;
	}

	@Override
	public void init() {
		super.init();
		this.lowestValueStatus = 0;
		this.highestValueStatus = 0;
		this.avgValueStatus = 0;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getLowestValueStatus() {
		return lowestValueStatus;
	}

	public void setLowestValueStatus(Integer lowestValueStatus) {
		this.lowestValueStatus = lowestValueStatus;
	}

	public Integer getAvgValueStatus() {
		return avgValueStatus;
	}

	public void setAvgValueStatus(Integer avgValueStatus) {
		this.avgValueStatus = avgValueStatus;
	}

	public Integer getHighestValueStatus() {
		return highestValueStatus;
	}

	public void setHighestValueStatus(Integer highestValueStatus) {
		this.highestValueStatus = highestValueStatus;
	}

	@Override
	public String toString() {
		return "SugarStatisticsBean [" + (type != null ? "type=" + type + ", " : "")
				+ (lowestValueStatus != null ? "lowestValueStatus=" + lowestValueStatus + ", " : "")
				+ (avgValueStatus != null ? "avgValueStatus=" + avgValueStatus + ", " : "")
				+ (highestValueStatus != null ? "highestValueStatus=" + highestValueStatus + ", " : "")
				+ (super.toString() != null ? "toString()=" + super.toString() : "") + "]";
	}

}